#!/usr/bin/python3.4

import cgi
form = cgi.FieldStorage()
print("Content-type: text/html")

html = """
<TITLE>tutor3.py</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<H1>问候语</H1>
<HR>
<P>%s</P>
<HR>"""

if not "user" in form:
    print(html % "你是谁?")
else:
	print(html % ("你好, %s！." % form["user"].value))